package com.dog.modules.system.init;

import com.dog.modules.system.service.SysMenuService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 资源与角色访问对应关系操作组件
 * Created by macro on 2020/7/17.
 */
@Component
@AllArgsConstructor
public class ResourceRolePermissionRunner {

   private final  SysMenuService sysMenuService;

    @PostConstruct
    public void init(){
        sysMenuService.initResourceRolesMap();
    }
}
